import { createRouter, createWebHistory } from 'vue-router';
import routes from './routes';

const router = createRouter({
    history: createWebHistory(),
    routes
});
/**
 * 获取当前可用的路由
 * @returns [Object Array] 当前可用的路由
 */
function getRoutes() {
    return routes;
}

export default router;

export {
    getRoutes
}
